﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EquipmentTypeList.aspx.cs" Inherits="MedicalCare.Admin.EquipmentTypeList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<table>
<tr><td>
 <asp:DataList ID="dlEquipmentType" runat="server" CellPadding="2" 
        onitemcommand="dlEquipmentType_ItemCommand">
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr>
                                <td style="width: 150px; text-align: center;display:none">
                                    Id
                                </td>
                                <td style="width: 150px; text-align: center">
                                    设备类型名
                                </td>
                                <td style="width: 150px; text-align: center">
                                    类型描述
                                </td>
                                <td style="width: 150px; text-align: center">
                                    创建人
                                </td>
                                <td style="width: 150px; text-align: center">
                                    创建时间
                                </td>
                                <td style="width: 150px; text-align: center">
                                    修改人
                                </td>
                                <td style="width: 150px; text-align: center">
                                    修改时间
                                </td>
                                <td style="width: 150px; text-align: center">
                                    操作
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr onmouseover="this.style.background ='#FFDEAD';"  onmouseout="this.style.background ='#ffffff'">
                                <td style="width: 150px; color: Red; text-align: center;display:none">
                                  <%# DataBinder.Eval(Container.DataItem, "Id")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "Comment")%>
                                </td>
                                  <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "CreateUser")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "CreateDT")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "ModifyUser")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "ModifyDT")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                   <asp:Button ID="btEdit" runat="server"  CommandName="edit" Text="编辑"  CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' />
                                   <asp:Button ID="btDelete" runat="server"  CommandName="del" Text="删除" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>' />
                                </td>

                            </tr>
                        </table>
                    </ItemTemplate>
                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:DataList>
</td></tr>
<tr><td>
    <asp:Button ID="btnAddNewEquipmentType" runat="server" Text="新增设备类型" 
        onclick="btnAddNewEquipmentType_Click" />
</td></tr>
<%--<tr><td>
 <asp:Panel ID="pnlEquipmentTypeDetail" runat="server" GroupingText="设备类型详细信息">
 <table>
    <tr><td colspan="2">设备类型名:<asp:TextBox ID="tbEquipmentName" runat="server" Width="200px"></asp:TextBox></td></tr>
    <tr><td colspan="2">类型描述:</td></tr>
    <tr><td colspan="2"><textarea id="ttEquipmentComment" cols="20" runat="server" style="width:400px" rows="4"></textarea></td></tr>
    <tr><td><asp:Button ID="btSave" runat="server" Text="保存" onclick="btSave_Click" /></td><td>
        <asp:Button ID="btCancel" runat="server" Text="取消" onclick="btCancel_Click" /></td></tr>
 </table>
 </asp:Panel>
</td></tr>--%>
</table>
 

</asp:Content>
